package com.klf.system.bo;

import java.util.List;

import com.klf.po.Cuisinetype;
import com.klf.system.dao.CuisinetypeDAOImpl;

public class CuisinetypeBoImpl implements ICuisinetypeBo {
	
	@SuppressWarnings("unused")
	private CuisinetypeDAOImpl cuisinetypeDAOImpl;
	

	public CuisinetypeDAOImpl getCuisinetypeDAOImpl() {
		return cuisinetypeDAOImpl;
	}

	public void setCuisinetypeDAOImpl(CuisinetypeDAOImpl cuisinetypeDAOImpl) {
		this.cuisinetypeDAOImpl = cuisinetypeDAOImpl;
	}

	public void add(Object obj){
		// TODO Auto-generated method stub
		try {
			Cuisinetype c = (Cuisinetype)obj;
			cuisinetypeDAOImpl.add(c);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public void delete(Cuisinetype c) {
		// TODO Auto-generated method stub
		try {
			cuisinetypeDAOImpl.delete(c);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public void delete(Long id) {
		// TODO Auto-generated method stub
		try {
			cuisinetypeDAOImpl.deleteById(Cuisinetype.class, id);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public List<Object> getAll(String className) {
		// TODO Auto-generated method stub
		try {
			return cuisinetypeDAOImpl.getAll(className);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

	public Object getObjectById(Long id) {
		// TODO Auto-generated method stub
		try {
			return cuisinetypeDAOImpl.getObjectById(Cuisinetype.class, id);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

	public void update(Object obj) {
		// TODO Auto-generated method stub
		
	}

	public void delete(Long[] id) throws Exception {
		// TODO Auto-generated method stub
		
	}

	

}
